package com.blog.controller.adminarticle;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.blog.controller.base.BaseServlet;
import com.blog.service.adminbloggers.AdminBlogService;


@WebServlet("/adminArtical/delete1")
public class AdminDeleteBlogServlet extends BaseServlet {

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		AdminBlogService service=new AdminBlogService();
		int id=Integer.parseInt(req.getParameter("blogid"));
		service.deleteBlogById(id);
	}
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
}